<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 800px;
            height: 800px;
            border: 1px solid #ccc;
            margin: 0 auto;
            position: relative;
            box-sizing: border-box;
        }
        div div{
            width: 200px;
            height: 200px;
            border: 1px solid rgb(158, 39, 39);
            position:absolute;
            margin-top:100px;

        }
        div div:nth-child(1){
            background: red;
            left:300px;
        }
        div div:nth-child(2){
            background: yellow;
            left:300px;
            top:200px;
        }
        div div:nth-child(3){
            background: green;
            left:300px;
            top:400px;
        }
        div div:nth-child(4){
            background: blue;
            left:100px;
            top:200px;
        }
        div div:nth-child(5){
            background: aqua;
            left:500px;
            top:200px;
        }
    </style>
</head>
<body>
    <div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</body>
</html>